@layout("/common/_container.html"){
<link rel="stylesheet" href="${ctxPath}/static/layui/css/layui.css" media="all">
<input type="hidden" id="isAdmin" value="${shiro.getUser().roleNames[0]}">
<input type="hidden" id="hasAddPermission" value="${shiro.hasPermission('/application/add')}">
<div class="layui-row">
    <div class="layui-col-sm12">
        <div class="layui-card">
            <div class="layui-card-header">应用管理</div>

            <div class="layui-card-body">
                <div class="layui-row">
                    <div class="layui-col-sm12">
                        <table class="layui-hide" id="app-list" lay-filter="app-info"></table>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script type="text/html" id="applist-toolbar">
    <div class="layui-btn-container">
        <button class="layui-btn layui-btn-sm" lay-event="publicApp">发布应用</button>
<!--        <button class="layui-btn layui-btn-sm" lay-event="editApp">编辑应用</button>-->
    </div>
</script>
<script type="text/html" id="operation">
    {{# if(d.status === 1){ }}
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="offShelf">下架</a>
    {{# }else{ }}
    <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="onShelf">上架</a>
    {{# } }}
</script>
<script type="text/html" id="onOffOperation">
    {{# if(d.status === 1){ }}
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="offShelf">下架</a>
    <a class="layui-btn layui-btn-xs" lay-event="edit">更新</a>
    {{# }else{ }}
    <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="onShelf">上架</a>
    <a class="layui-btn layui-btn-xs" lay-event="edit">更新</a>
    {{# } }}
</script>
<script src="${ctxPath}/static/js/common/DateUtils.js" charset="utf-8"></script>
<script src="${ctxPath}/static/layui/layui.js"></script>
<script src="${ctxPath}/static/modular/apple_app_manage/application/application.js"></script>
@}